package com.zc.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zc.dao.MenuMapper;
import com.zc.po.Menu;
import com.zc.service.MenuService;

@Service
public class MenuServiceImpl implements MenuService {

	@Autowired
	private MenuMapper menuMapper;

	@Override
	public Menu selectByPrimaryKey(String m) {
		Menu menu = menuMapper.selectByPrimaryKey(m);
		return menu;
	}

	@Override
	public Object selectAll() {
		List<Menu> all = menuMapper.selectAll();
		return all;
	}
}
